import axios from '@/libs/api.request'
// 创建样品
export const createSample = (data) => {
  return axios.request({
    url: '/api/ac/xgc/quanMinService/createSample',
    method: 'post',
    data: data
  })
}
// 创建样品人员
export const createSamplePerson = (data) => {
  return axios.request({
    url: '/api/ac/xgc/quanMinService/createSamplePerson',
    method: 'post',
    data: data
  })
}
// 通过样品编码查询人员列表
export const getSamplePersonList = (data) => {
  return axios.request({
    url: '/api/as/xgc/quanmin/getSamplePersonList',
    method: 'post',
    data: data
  })
}
// 社区查看样品列表
export const getSampleList = (data) => {
  return axios.request({
    url: '/api/ac/xgc/quanMinService/getSampleList',
    method: 'post',
    data: data
  })
}
// 编辑样品编码的人员信息
export const updateSamplePerson = (data) => {
  return axios.request({
    url: '/api/as/xgc/quanmin/updateSamplePerson',
    method: 'post',
    data: data
  })
}
// 社区查看统计数量
export const getSampleCountInfo = (data) => {
  return axios.request({
    url: '/api/ac/xgc/quanMinService/getSampleCountInfo',
    method: 'post',
    data: data
  })
}
// 更新送检状态
export const updateSampleStatus1 = (data) => {
  return axios.request({
    url: '/api/ac/xgc/quanMinService/updateSampleStatus1',
    method: 'post',
    data: data
  })
}
// 删除样品编码的人员信息
export const deleteSamplePerson = (data) => {
  return axios.request({
    url: '/api/as/xgc/quanmin/deleteSamplePerson',
    method: 'post',
    data: data
  })
}
// 卫健委样品列表
export const getSampleListForWJ = (data) => {
  return axios.request({
    url: '/api/ac/xgc/quanMinService/getSampleListForWJ',
    method: 'post',
    data: data
  })
}
// 卫健委更改样品结果11
export const updateSampleStatusForWJ = (data) => {
  return axios.request({
    url: '/api/as/xgc/quanmin/updateSampleStatusForWJ ',
    method: 'post',
    data: data
  })
}
// 通过身份证号查询人员库人员信息
export const getPersonInfoByCardno = (data) => {
  return axios.request({
    url: '/api/as/xgc/quanmin/getPersonInfoByCardno',
    method: 'post',
    data: data
  })
}
// 设置预约
export const createAppointSetting = (data) => {
  return axios.request({
    url: '/api/ac/xgc/quanMinAppointService/createAppointSetting',
    method: 'post',
    data: data
  })
}
// 更新预约
export const updateAppointSetting = (data) => {
  return axios.request({
    url: '/api/ac/xgc/quanMinAppointService/updateAppointSetting',
    method: 'post',
    data: data
  })
}
// 预约列表
export const getAppointSettingList = (data) => {
  return axios.request({
    url: '/api/ac/xgc/quanMinAppointService/getAppointSettingList',
    method: 'post',
    data: data
  })
}
// 预约详情
export const getAppointPersonList = (data) => {
  return axios.request({
    url: '/api/ac/xgc/quanMinAppointService/getAppointPersonList',
    method: 'post',
    data: data
  })
}
// 删除预约设置
export const deleteAppointSetting = (data) => {
  return axios.request({
    url: '/api/ac/xgc/quanMinAppointService/deleteAppointSetting',
    method: 'post',
    data: data
  })
}
// 删除预约设置
export const deleteSample = (data) => {
  return axios.request({
    url: '/api/ac/xgc/quanMinService/deleteSample',
    method: 'post',
    data: data
  })
}
// 市级汇总
export const getCountShiJiHuiZong = (param) => {
  return axios.request({
    url: '/api/as/xgc/quanmincount/getCountShiJiHuiZongList',
    method: 'post',
    data: param
  })
}
// 监测点汇总
export const getCountJianCeDian = (param) => {
  return axios.request({
    url: '/api/as/xgc/quanmincount/getCountJianCeDianList',
    method: 'post',
    data: param
  })
}
// 机构汇总
export const getCountJiGouHuiZong = (param) => {
  return axios.request({
    url: '/api/as/xgc/quanmincount/getCountJiGouHuiZongList',
    method: 'post',
    data: param
  })
}
// 获取检测机构
export const getCompanyJCList = (param) => {
  return axios.request({
    url: '/api/as/xgc/quanmincompany/getCompanyJCList',
    method: 'post',
    data: param
  })
}
// 获取区数据
export const getQuList = (param) => {
  return axios.request({
    url: '/api/us/xgc/quanmin/getQuList',
    method: 'post',
    data: param
  })
}
// 采集点列表
export const getPlaceCJList = (param) => {
  return axios.request({
    url: '/api/as/xgc/quanminplace/getPlaceCJList',
    method: 'post',
    data: param
  })
}
// 删除采集点
export const deletePlaceCjByCode = (param) => {
  return axios.request({
    url: '/api/as/xgc/quanminplace/deletePlaceCjByCode',
    method: 'post',
    data: param
  })
}
// 修改采集点
export const updatePlaceCJByCode = (param) => {
  return axios.request({
    url: '/api/as/xgc/quanminplace/updatePlaceCJByCode',
    method: 'post',
    data: param
  })
}
// 添加采集点
export const createPlaceJC = (param) => {
  return axios.request({
    url: '/api/ac/xgc/quanMinPlaceService/createPlaceJC',
    method: 'post',
    data: param
  })
}
// 添加人员
export const insertPlaceCJPersion = (param) => {
  return axios.request({
    url: '/api/as/xgc/quanminplace/insertPlaceCJPersion',
    method: 'post',
    data: param
  })
}
// 修改人员
export const updatePlaceCJPersionById = (param) => {
  return axios.request({
    url: '/api/as/xgc/quanminplace/updatePlaceCJPersionById',
    method: 'post',
    data: param
  })
}
// 人员列表
export const getPlaceCJPersonList = (param) => {
  return axios.request({
    url: '/api/as/xgc/quanminplace/getPlaceCJPersonList',
    method: 'post',
    data: param
  })
}
// 删除人员
export const deletePlaceCjPersonById = (param) => {
  return axios.request({
    url: '/api/as/xgc/quanminplace/deletePlaceCjPersonById',
    method: 'post',
    data: param
  })
}
// 添加车辆
export const insertPlaceCJCar = (param) => {
  return axios.request({
    url: '/api/as/xgc/quanminplace/insertPlaceCJCar',
    method: 'post',
    data: param
  })
}
// 修改车辆
export const updatePlaceCJCarById = (param) => {
  return axios.request({
    url: '/api/as/xgc/quanminplace/updatePlaceCJCarById',
    method: 'post',
    data: param
  })
}
// 车辆列表
export const getPlaceCJCarList = (param) => {
  return axios.request({
    url: '/api/as/xgc/quanminplace/getPlaceCJCarList',
    method: 'post',
    data: param
  })
}
// 删除车辆
export const deletePlaceCjCarById = (param) => {
  return axios.request({
    url: '/api/as/xgc/quanminplace/deletePlaceCjCarById',
    method: 'post',
    data: param
  })
}
// 修改物品
export const updatePlaceCJWPByCode = (param) => {
  return axios.request({
    url: '/api/as/xgc/quanminplace/updatePlaceCJWPByCode',
    method: 'post',
    data: param
  })
}
// 物品详情
export const getPlaceCJWP = (param) => {
  return axios.request({
    url: '/api/as/xgc/quanminplace/getPlaceCJWP',
    method: 'post',
    data: param
  })
}
// 采集点基本详情
export const getPlaceCJ = (param) => {
  return axios.request({
    url: '/api/as/xgc/quanminplace/getPlaceCJ',
    method: 'post',
    data: param
  })
}
// 添加检测机构
export const createCompanyJC = (param) => {
  return axios.request({
    url: '/api/ac/xgc/quanMinCompanyService/createCompanyJC',
    method: 'post',
    data: param
  })
}
// 修改检测机构
export const updateCompanyJCByCode = (param) => {
  return axios.request({
    url: '/api/as/xgc/quanmincompany/updateCompanyJCByCode',
    method: 'post',
    data: param
  })
}
// 删除检测机构
export const deleteCompanyJCByCode = (param) => {
  return axios.request({
    url: '/api/as/xgc/quanmincompany/deleteCompanyJCByCode',
    method: 'post',
    data: param
  })
}
// 获取检测机构列表下拉用
export const getCompanyJCSelectList = (param) => {
  return axios.request({
    url: '/api/as/xgc/quanmincompany/getCompanyJCSelectList',
    method: 'post',
    data: param
  })
}
